package com.scenic.rd_android.design_model.mvp.model.data;

import com.scenic.rd_android.design_model.mvp.model.Task;

import java.util.List;

/**
 * Created by scenic on 16/8/20.
 */
public interface TaskDataSource {


    interface LocalTasksCallback {
        void onTasksLoaded(List<Task> taskList);
        void onDataNotAvailable();
    }

    interface GetTaskCallback {
        void onTaskLoad(Task task);
        void onDataNotAvailable();
    }


    void saveTask(Task task);

    void deleteTask(String taskID);

    void getTasks(LocalTasksCallback callback);

    void getTask(final String taskID,GetTaskCallback callback);

}
